﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="NoticeAdd.aspx.cs" Inherits="ITOMMS.Web.Notice.NoticeAdd" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>公告添加</title>
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../css/skin/qq/ymPrompt.css" />
    <link rel="stylesheet" id='Link1' type="text/css" href="../css/jquery.Validator.Tooltip.css" />

    <script type="text/javascript" src="../js/jquery.pack.js"></script>

    <script type="text/javascript" src="../js/jquery.Validator.js"></script>

    <script type="text/javascript" src="../js/ymPrompt.js"></script>

</head>
<body>
    <form id="aspnetForm" runat="server">
        <div id="message" style="background-color: Red">
        </div>
        <table class="tblDataArea" width="100%">
            <tr class="tblQueryArea">
                <td class="tblDataCaption" colspan="2">
                    <div style="width: 210px;" class="title">
                        <img src="../images/lv3.gif" style="margin-bottom: -3px;" />公告添加</div>
                </td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 58px">
                    <span>标题:</span>
                </td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txtTitle" runat="server" Width="592px"></asp:TextBox><span style="color:Red">*</span>
                </td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 58px">
                    类别:</td>
                <td class="tdQueryField">
                    <asp:DropDownList ID="ddlType" runat="server">
                        <asp:ListItem Selected="True" Value="1">1.对外公告</asp:ListItem>
                        <asp:ListItem Value="2">2.内部公告</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 58px">
                    内容:</td>
                <td class="tdQueryField">
                    <FTB:FreeTextBox ID="FreeTextBox1" runat="server" AutoHideToolbar="False" ImageGalleryPath="FreeTextBoxPic"
                        Language="zh-cn" SupportFolder="~/aspnet_client/FreeTextBox/" ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,Strikethrough;Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage,InsertImageFromGallery,InsertRule|Cut,Copy,Paste;Undo,Redo,Print"
                        Height="220px">
                    </FTB:FreeTextBox><span style="color:Red">*</span>
                </td>
            </tr>
            <tr>
                <td class="tblDataCaption" style="width: 58px">
                </td>
                <td class="tblDataCaption">
                    <asp:Button ID="btnSave" CssClass="cssButton" runat="server" Text="提交" OnClientClick="javascript:return confirm('你确认要提交吗?');"
                        OnClick="btnSave_Click" /></td>
            </tr>
        </table>
    </form>
</body>
</html>
  
<script type="text/javascript">

function check()
{
   // alert($.GetValidResult());
	if($.GetValidResult())/*验证表单*/
	{	
	    return true; 
	}
	else
	{
	    return false;
	}
}

    $("#txtTitle").attr("dataType","Require");
    $("#txtTitle").attr("tip", " ");
    
    $("#FreeTextBox1").attr("dataType","Require");
    $("#FreeTextBox1").attr("tip", " ");
    
    
    
</script>

